tools/libxl: Fix a segment fault when mmio_hole is set in hvm.cfg
authorXiong Zhang <xiong.y.zhang@intel.com>
Thu, 13 Jul 2017 02:03:39 +0000 (10:03 +0800)
committerWei Liu <wei.liu2@citrix.com>
Wed, 12 Jul 2017 10:21:37 +0000 (11:21 +0100)
commit614a14736e33fb84872eb00f08799ebbc73a96c6
treec8ca8187699b6500b3766e36d1a90e56b9fac273
parent89df98b77d28136c4d7aade13a1c8bc154d2919f
tools/libxl: Fix a segment fault when mmio_hole is set in hvm.cfg

When valid mmio_hole is set in hvm.cfg, segment fault happens at accessing
localents pointer.

Because the size of localents pointer isn't enough to store appended
mmio_hole_size parameter.

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_create.c